package 简单洗牌;

import java.util.List;

public class Main {
    public static void main(String[] args) {
        CardGame cardGame = new CardGame();
        List<Card> ret = cardGame.buyCard();
        System.out.println("买牌:");
        System.out.println(ret);

        System.out.println("洗牌:");
        cardGame.shuffle(ret);
        System.out.println(ret);

        System.out.println("揭牌:");
        List<List<Card>> player = cardGame.getCard(ret);
        for (int i = 1; i < player.size()+1; i++) {
            System.out.println("第"+i+"个玩家的牌为:"+player.get(i-1)+"\n");
        }

        System.out.println("剩下的牌:");
        System.out.println(ret);
    }
}
